package com.dyw.spzx.model.entity.system;

import com.dyw.spzx.model.entity.base.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.util.List;

@Schema(description = "系统菜单")
@Data
public class SysMenu extends BaseEntity {

    private static final long serialVersionUID = 1L;
    @Schema(description = "所属上级")
    private Integer parentId;
    @Schema(description = "菜单标题")
    private String title;
    @Schema(description = "组件名称")
    private String component;
    @Schema(description = "排序")
    private String sortValue;
    @Schema(description = "状态")
    private String status;

    // 下级列表
    private List<SysMenu> children;

}
